{% extends 'base.html' %}

{% block main %}
        <!--博客页 -->
        <div class="page-content">
            <section id="blog" class="content-section">
                <div class="section-heading">
                    <h1>博客<br><em>模板</em></h1>
                    <p>Curabitur hendrerit mauris mollis ipsum vulputate rutrum.
                    <br>Phasellus luctus odio eget dui imperdiet.</p>
                </div>
                <div class="section-content">
                        <div class="wrapper">

                            {% for post in post_list %}
                                     <article class="post post-{{ post.pk }}">
                                         <div class="post-li">
                                          <div class="item">
                                                <div class="text-content">
                                                    <h4><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h4>
                                                    <p>{{ post.excerpt }}...</p>
                                                    <span>{{ post.created_time }}</span>
                                                </div>
                                          </div>
                                         </div>
                                     </article>
                            {% empty %}
                            <div class="no-post">暂时还没有发布的文章！</div>
                            {% endfor %}

                        </div>
                </div>
            </section>
        </div>
{% endblock main %}